pata_platform: Fix NULL pointer dereference