Fixed array detection on public download

When downloading a folder called "0001" PHP should fallback to parsing
it as string and properly detect that it is not a JSON array.
Merge pull request #11537 from owncloud/filenamewithzeroes

Fixed array detection on public download