Fixed a regression with get_or_create and virtual fields.

refs #20429