Fixed an issue with role changes looking up defunct objects, thus not
enabling NY raid functionality. Also added tests to check for this
behaviour in the future.