Add missing NDEBUG safeguard