Fixing bug when passing hp in learnpath -refs #6259