Null check for the wireframe render, it shouldn't be a problem, but might in some weird stupid cases.