Die cleanly when we fail to get a library in _resolve_source_for_sample.