Fixed bug in systems.removeAll where an error occurred if a system had previously been removed.