Avoid a deref-before-NULL-check warning