Fix OC_User::getDisplaynames when using numeric user id's

fixes #2948
Merge pull request #2955 from owncloud/displaynames-numeric

Fix OC_User::getDisplaynames when using numeric user id's