fix files_external storage id migration

fixes migration issue reported in https://github.com/owncloud/core/issues/11585#issuecomment-59258091
Can the $oldId be sometimes longer than 64 ?
If yes you'll need to add code like this: https://github.com/owncloud/core/blob/master/lib/private/files/cache/cache.php#L49