It is not likely that your LCD library reads data from the LCD module and it therefore may not attempt to control the LCD R/W line (pin 5). If the corrections in the previous post don't fix your problem then try disconnecting the wire from pin 10 of the PCF8574 and connect it to GND instead.
Don