Fix NPE in makeWekaInstance()