Catch null pointer exception when getting parts

And show an error message.  THere's not a lot we can do about it other than "there is a problem" but an error message is better than naught.
fix amber version for travis
Merge pull request #350 from nla/hr-null-pointer-error

Catch null pointer exception when getting children