Throw exception if file cannot be accessed via http

Format file

Removing calls to deprecated classes and using internal method to get via http

Missed a character

Fix inverted logic
Merge pull request #10528 from owncloud/fix-htaccess-check-error

Fix htaccess check error