[MySQL] Avoid condition when T is passed as an boolean option value

According to CLHS numberp signals a condition when its argument is not
a number. Additional check added.

Signed-off-by: Gleb Golubitsky <sectoid@gnolltech.org>