Fix MySQL breakage when cleaning up path table during video library clean

See [PR5006](https://github.com/xbmc/xbmc/pull/5006#issuecomment-48785813) for details.

Tested in OpenELEC master with MySQL 5.5.2.1