Check for alg==NULL in jwt_str_alg()
Check for alg==NULL in jwt_str_alg()

Taken from tjamison's patch

Signed-off-by: Ben Collins <73675debcd8a436be48ec22211dcf44fe0df0a64@cyphre.com>

benmcollins/libjwt