Avoid crashing an app
Merge pull request #370 from elliotf/fix-crashing-mariasql-bug

Avoid crashing an app