Fixes an NPE.

Change-Id: I4bca1f0f747d01e653a849ad2017719b69843b74
Merge pull request #127 from dannyyoo/PYDEV-430

Fixes an NPE.