Fail if requested variable is not available
Merge pull request #4631 from mmoya/mysql_variables-fix3

Fail if requested variable is not available