Fix NPE if a statue item is invalid