Runtime error is thrown when trying to mutate managed set outside of mutation method

+review REVIEW-5322