The insurer is not liable for any loss attributable to the wilful misconduct of the assured, but, unless the policy otherwise provides, he is liable for any loss proximately caused by a peril insured against, even though the loss would not have happened but for the misconduct or negligence of the master or crew