Fixed issue with NPE.
Merge pull request #40 from nathanshih/insertCourse

Fixed issue with NPE.