Catch preupgrade exception

Fixes https://github.com/owncloud/apps/issues/1863
@DeepDiver1975 what for? In order to know that upgrade to v0.6 has not been done yet? :)