Make sure a setter is public before invoking it