Fix Release build break

When building in Release, the static analyzer will complain that these variables
are unused, or that execution could continue and dereference a NULL pointer.