Khawaja's blazing 50 helps erratic Australia beat Bangladesh by 3 wickets in World T20