Make BgpProtoPrefix parsing more robust

Change-Id: I817e70026dfe5a7c3e9935492e0c6f4baf050f37