Avoided null error on count
Avoided null error on count

This commit avoids a warning when the library tries to call count() on a
non-array object. The issue is avoided by checking whether the object is
an array beforehand.

See #51

contentful/ContentfulBundle,contentful/ContentfulBundle