The 49ers head coach defended his quarterback after ridiculous headwear controversy.