17 A person who commits an offence under compulsion by threats of immediate death or bodily harm from a person who is present when the offence is committed is excused for committing the offence if the person believes that the threats will be carried out and if the person is not a party to a conspiracy or association whereby the person is subject to compulsion, but this section does not apply where the offence that is committed is high treason or treason, murder, piracy, attempted murder, sexual assault, sexual assault with a weapon, threats to a third party or causing bodily harm, aggravated sexual assault, forcible abduction, hostage taking, robbery, assault with a weapon or causing bodily harm, aggravated assault, unlawfully causing bodily harm, arson or an offence under sections 280 to 283 (abduction and detention of young persons).