Fix lookup of collation sequence value during regexp matching