Fix error when viewing expired link
Merge pull request #8324 from owncloud/expired-link-error

Fix error when viewing expired link