properly check if pdf and svg modules are installed
Merge pull request #7066 from owncloud/check_svg_installed

properly check if pdf and svg modules are installed