BZ1016517 - Unable to build project even if the invalid rule is deleted
(cherry picked from commit 13705f170b6eba57d601a5947b88b7dfc459202b)