Fixed NPE when a failed execution results in no type information obtained.  Also removed a duplicate logging of submitted queries.