Prevent crash when RS removes TestMethodElement