added a guard to check a badge class exists before making an assertion
Merge branch 'master' of github.com:surevine/neon