Simplify AutonavBlockController::populateParentIDArray

Let's make the populateParentIDArray() method of the AutonavBlockController class more clear and clean.
Test: http://3v4l.org/Pf6LI