Prevent file extension registration crashes