Fix a potential NRE.

I forgot to check the returned settings node was valid. oops.