Fixes a bug introduced in https://github.com/opencobra/cobrapy/pull/53