FRODO: Free rejection of out-of-distribution samples: application to chest x-ray analysis