Gracefully handle unitdefs without mass defined.