FFC Connector Replacement
Better try to find 24P connector from different manufacturer or different type.
It would be potential risk to use 25P. Yes, it will probably work. But imagine somebody will service that device (a year later) and will forget (or won't know at all) that there is 25P connector and 24P flat flex cable and will connect it misaligned. There could be some sort of short, which could fry your LCD.  

I would use it ONLY as a temporary "solution".