Checking for undefined data in the action received on the server.