Fixed Con.Mod.Exception (again).

Added a few more safeguards. Please ensure from now on that
asserts are not used to check Entity.has(...), since this
commit invalidates that assumption. Use an if-statement instead.