Fix null reference exceptions when CopyState is not available.