Introduce bool method testing whether or not distances were created correctly

This avoids running into a qFatal when constructing an invalid distance,
and also allows users to check if any part of a compound distance was not
created.