Sink two variables only used in an assert into the assert itself. Should
fix the release builds with Werror.