Fix NoneObject exception when specifying versions on dependency packages