Added a null check to guard against NPE seen in the log.