Fix another crash in same origin policy handling