Fixed a null pointer in version parser