fixed bug resulting in server crash when performance_schema was enabled