Fix htaccess check error

Resolves https://github.com/owncloud/core/issues/10473

@karlitschek Should we backport this as it should have been done when the above case was fixed?
And as @DeepDiver1975 said: `===` would be nice