[#2792] Check that mysql pointer is non-null

Marcin Siodelski requested to merge 2792-workaround-for-mysql-client into master

This is a workaround for the libmysqlclient that dereferences mysql ptr in the MYSQL_STMT after reconnect. Kea checks that this pointer is not NULL before using the statement.

Closes #2792

Merge request reports