Fix silent crash if 3rdparty dir is not available

Fixes https://github.com/owncloud/core/issues/9975

Regression.
Unfortunately `OC_Template::printExceptionErrorPage` would not work without 3rdparty dir.