XD-1881: Cope with ending slash in xd.home

It just seems a little brittle since this in a constructor but depends on the other instance not only being instantiated but already having received an event (also that assumption about an *instance* is not very obvious given that the dependency appears to be only via a static method call). Perhaps an Assert.state(..) would be sufficient... at least providing a friendly error message if any wires get crossed.