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

- reported by Torrey Searle, FS#420

(cherry picked from commit 37983c9f57536c57c5d34ce2d8a1c8f411e61e39)