Fix warning in builds without asserts.