Fix the `diagram(_)::rlibrary/1-2` predicates when no sub-libraries exist