This is a good idea. However, NYC trains no longer lose power between 3rd rails gaps. Power is now supported throughout the car in the gap because NYC trains supply a short system battery in all cars now to provide power for a short period of time should the train leave contact with the 3rd Rail. Thus, no train power loss and no lights go out. It just wouldn't make any sense to code this into trains or routes since no train in the NYC system losses power over gaps anymore. The only way I could see this being used is on older trains such as your upcoming R16 and routes from the past such as the 1969 shuttle.
Actually the HVAC turns off on the NTT and once on a late night special 2 run I think to E180 Street, the train stopped over a third rail gap and some of the lights turned off because it layed on the gap for a few minutes. It takes a while for the onboard battery to loose power but it does. Also, sometimes when an NTT goes over a rail gap sometimes a few lights dim along with the HVAC turning off.