Catch null pointer exception when getting children

Show an error message rather than crash.  There's not a lot we can do about it other than report to the user "there is a problem" but an error message is better than nothing.