Fix github.py state check

Made a boo-boo when checking if an issue is open in github.py.
This quick commit fixes that.