#768060 by EmanueleQuinto: Better empty field replacement that continues to respect other rewriting rules.