Use a boolean flag for 'is mls query running' 

rather than checking if the asynctask is non-null