fixes #5808
Merge pull request #5811 from owncloud/fixing-5808-stable5

fixing Fatal error: Call to a member function logicToPhysical() on a non-object