Correcting assoc_entries() to check if Matrix is installed before querying on that table.