Fixed error when exporting MySQL BLOB with null value