Fix for SP-588

Backport of BISERVER-10297 - Able to inject tags into the dialog (5.0)