Yup.  That 'optimization' is invalid.  Maybe you should re-open your pull request.