GFS2: fix potential NULL pointer dereference