JBIDE-13321 : Prevent NPE in ProjectUtil.refreshHierarchy

Signed-off-by: Fred Bricon <fbricon@gmail.com>