Added logging to File on Error

If there's an error while querying the database on isInstalled(), the error will be logged to pimcore's logfile now.