In any prosecution based on conduct which is justifiable under this chapter, justification is a defense.