install: Don't dereference nil pointer
install: Don't dereference nil pointer

The code was dereferencing `curVer` without checking if it was nil.

apache/incubator-mynewt-newt,apache/incubator-mynewt-newt