Fix ATLASDQ-663
Add protection against making ratio plots when the reference does not exist; also add protection if the reference and data plots do not have the same type
Add protection against making ratio plots when the reference does not exist; also add protection if the reference and data plots do not have the same type