All rules and principles of the common law which render any circumstances a justification or excuse for any act or omission, or a defence to a charge upon indictment, shall remain in force and apply to any defence to a charge upon indictment, except in so far as they are altered by, or are inconsistent with, the Code .