MODE-2152 Added null validation when removing a version which does not have any successors.