Where a permit under section 11 has been issued to the master of a ship or the pilot of an aircraft for the purpose of enabling the ship or aircraft to enter, pass through or be over a prohibited area, a person lawfully on board the ship or aircraft does not commit an offence against section 9 by reason only of his or her presence on board the ship or aircraft.