Fix a problem introduced with previous commit fixing warning in NDEBUG mode