Fixed the bug.  Refs #7658.

1. Fixed the bug, which causes that a while loop cannot be over;
2. Cleaned the codes.
Fixed the bug.  Refs #7658.

The comment in the last commit is not all correct.  The bug is inside
LeBailFunction.cpp
Merge branch 'feature/7658_lebailfit_tcmalloc_error' into develop