fix isTrashed() function on notes and notebook models