db_mysql: properly free db result structure if db_mysql_convert_result() fails

- reported by Torrey Searle, FS#420