Fixed some checks that would otherwise fail on empty collections
Merge branch 'dev' of github.com:Saartje87/pbjs-0.6 into dev

Conflicts:
	dist/pbjs.js
	dist/pbjs.min.js