Add a fallback for old share() calls without expirationDate.
We should remove this in a later version, after the Apps have been updated.

Fix #4823