fix(rest): null checks in PUT /authorization