Fix NPE in upgrade map parsing.