What if we only included IP when $wgUser->getID() > 0?