openocd: manually remove NULL comparisons