Bug 226: Add Null check on iProject.getLocation()

Projects are not required to have locations, i.e. getLocation can return
null, for example a Virtual project stored in memory

Fixes https://sw-brainwy.rhcloud.com/tracker/PyDev/226