Fixed #528: Template layers do not expand empty parameters in formatting strings