`ref` could raise even if raise_if_not_found was False on `viewref`, now we prevent that, and rely only on the exception on `viewref`. Also, when not set to raise, the method could return None instead of a recorset. PR: #29753
`ref` could raise even if raise_if_not_found was False on `viewref`, now we prevent that, and rely only on the exception on `viewref`. Also, when not set to raise, the method could return None instead of a recorset. PR: #29753