Patches for check_mysql.c: Negative value in array [sf#2696823] [#969]