fix NullPointerException in case of 401 with no auth challenge (includes...

... unit test)