Prevent possible NPE by being sure the HashMap is filled.