Added workarounds for NullPointerExceptions and logger commands to help find them.

Removed unused contructor from RemoveEntityCommand