Refs #20045; fixed check for forward_relations that broke badrelations test