Fixed unexpected call to "map" function on content

Added type check before call to map function..
Merge pull request #17 from verxer/master

Fixed unexpected call to "map" function on content