added proper null pointer handling for GermplasmCross and SingleGermplasmCrossElement