Black hole formation from a null fluid in extended Palatini gravity