Fixed crash when destroying xinsert clients early

It's now safe to remove xinsert clients before they've been
installed on the engine side. This is a situation that can
occur if an application aborts right after installing xinsert
clients, and before, that would result in a segfault.