media: fix checking kind of parameter
Merge pull request #62 from Automattic/fix/media-files

media: fix checking kind of parameter