Only add a deactivated plan to the warning object if there are instances

[#81215738]