Remove no longer needed if statement

If statement no longer needed with https://github.com/owncloud/core/pull/7036 merged

cc @DeepDiver1975