Fix possible infinite loop in ProcInterface::heapAddress

We have to check for error after fgets().
Merge pull request #18 from xhaakon/core-reducer-100%-cpu

Fix possible infinite loop in ProcInterface::heapAddress