Fix possible NULL dereference

As reported by Kenichi Ishibashi.
1 file changed