Clarify return values

This function returns `null` when no user is logged-in.
Fix typo
Merge pull request #12969 from owncloud/clarify-docs

Clarify return values