Fix NPE in powder check tool