Style fixes
Check if requesttoken exists in session

Ref #1999
Merge pull request #2008 from owncloud/1999-requesttoken

Check if requesttoken exists in session