Reorder setting of neverRegistered for happens-before reasoning

As suggested by @buchgr