Fixed possible fatal error on Ajax requests. #jfbconnect-1511 Fixed