try to avoid NPE when one of the version strings to compare is null