Make BgpProtoPrefix parsing more robust

Change-Id: I1656bf24d978a2bcba55938bc31e7633ab2d27ed