PropCore: Reordered sanity check to hopefully fix #317
EGP: Fixed memory leak when using egpClear frequently
Fixes #302