Make BgpProtoPrefix parsing more robust

Change-Id: I0c4a96e4d4884843d88db619bd7cb47002a0265a