fix: Only add onclick if correct data is returned workaround for https://github.com/frappe/datatable/issues/177