Fixed issue where NPE's would occur on empty issues and pull requests, fixes #41, fixes #42.