(a) It shall not be necessary to obtain a permit as required in this division if a sudden emergency requires a firing in order to render one's premises safe. In any prosecution under this article, a necessary firing in a sudden emergency shall constitute an affirmative defense, but the burden of proving such necessity shall rest upon the person asserting it as a defense. (b) It shall not be necessary to obtain a permit to burn improved pastures, residue on cultivated crop land, or leaf piles if the person intending to burn such residue shall, prior to such burning, give notice of the approximate time and location thereof to the county fire department.