added ajax error handling for android bug