[hprof-conv] Check for NULL before closing descriptors

Else hprof-conf fails with a segfault.  Fixing this will help add a smoke
test for the Windows hprof-conv.

Test: hprof-conv.exe under wine
Change-Id: I0f19932ece26f0171e9c01c63536d71c28adb97f
1 file changed