BZ983963 - Cannot build project with rule template
(cherry picked from commit a11ddd5481880c4d84f1d158aad541621958aa96)