Added safety check to 'responseCallback' block such that if it is called with a NULL value, it now substitutes an empty collection for the responseData instead of throwing an exception