Make sure invitation has a code before trying to access it
Merge pull request #65 from mikhuang/master

Make sure invitation has a code before trying to access it