In sections 36 and 37 “realistic imitation firearm” means an imitation firearm which—
(a) has an appearance that is so realistic as to make it indistinguishable, for all practical purposes, from a real firearm
“real firearm” means—
(a) a firearm of an actual make or model of modern firearm (whether existing or discontinued); or
(b) something falling within a description which could be used for identifying, by reference to their appearance, the firearms falling within a category of actual modern firearms
“modern firearm” means any firearm other than one the appearance of which would tend to identify it as having a design and mechanism of a sort first dating from before the year 1870.
tl;dr version, it doesn't need a defence.