a fix for a NullPointerException whenever a client requests a client sco...

a fix for a NullPointerException whenever a client requests a client scope to be granted.