In some cases you cannot get the original value of clip_end through the projection matrix.
It might be a good idea to figure out the maximum limit for these float operations and update mat4_frustum_set to not fall in such cases.
But this patch only intended to prevent unproject operations from operating with infs and nans.
Ref T71795