Inserted an 'IsValid' check in the Godmode plugin which prevents a NullPointer error from occurring