Fix possible infinite loop in ProcInterface::heapAddress

We have to check for error after fgets().