Tweak duration typechecking

@ozten , r? https://github.com/mozilla/browserid-certifier/issues/27