Fixed bug with no issuer in token, added unit test for this case