[#61338560] Remove unnecessary code. Fix bug if no response data is retrieved from the server via the AJAX call.