[Petrae] Don't set reference field if empty