I've noticed this in the past and, in my experience, if availability for a certain class doesn't exist on flight A, it won't show for flight B. Can it be that Z was only available for the first leg in that one pair? In that case the upgrade from cash latitude will be base on availability in the flight as a stand alone.
Just checked and yes you are correct