fix for StaticAssets when last file has invalid mime type