Fixed summary visibility check

Now using the integer values to check whether to show the summary parts
instead of trying to parse the html code.
Merge pull request #5628 from owncloud/files-fixsummary

Fixed summary visibility check