Updated the change_actions method in inspection rules to account for
unexpected 'loop' values being added to the actions field by the API.
Although the API is not expected to include 'loop', it's still
appearing in some responses, causing issues.
This update ensures such cases are handled gracefully.
Related-Bug: 2105478
Change-Id: I9e03cd8d7640037cb98bc2586ddc03ed264ce2ac