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

Resolves mozilla/openbadges#894