Fix edge case with `rest` truthy-ness when null

Resolves mozilla/openbadges#894
Merge pull request #8 from thisandagain/master

Fix edge case with `rest` truthy-ness when null