Removed unnecessary null pointer checks before delete.  Fixes #229