rmg_det_to_db: catch when find succedes but returns no directories, or fails