Solve NRE's in packageVersion