Ensure that the cleanup method does not cause a crash due to accountType being nil.
As this should never be called anyway just be safe. Thanks to @mdamjanic7 for pointing out crashes caused by this.