Catch preupgrade exception

Fixes https://github.com/owncloud/apps/issues/1863
it occurs when table doesn't exist. And it doesn't exist for all versions prior to 0.6