Fixed the logic to stop returning $appName if it's not 'usercorner'
Merge pull request #992 from Zentyal/cperello/usercorner-fixes

masterCperello/usercorner fixes