Fixed issue with nullpointer exception on code completion.. this didn't really fix it, it just catches the NPE but it will at least allow code completion to continue.