Fixes #1999 - Don't crash on special unloading and loading combinations
E712 comparison to False should be 'if cond is False:' or 'if not cond:'