Fix ajax error on null content