Fix unitialized vars when sql.safe_mode=1

which can break the subsequent mysqlnd_connect() call