Make BgpProtoPrefix parsing more robust

Change-Id: I8093e4b2544bd2e9b58e74fc674ead474a41479f