Nauru refugee taken to burns unit 31 hours after incident, court told