Install correct version of cocoa pods before build.
Merge pull request #2611 from wordpress-mobile/feature/travis-install-cocoapod

Install correct version of cocoa pods before build.
Merge branch 'develop' of github.com:wordpress-mobile/WordPress-iOS into issues/2395-separate-comments
Minor refactor.

Avoids calling avatar methods if the hash is nil.