UC-2294 - added a null pointer check in valid users; if htl setting is not present, we get an error when extracting valid user from mongo