Ajax guard against null response