Merge "Avoid the use of uninitialized value in ActiveMap encoding route" into nextgenv2