Fixed check if gene links has not yet been defined.