check if response object is set, if not don't try to send a response;