Make BgpProtoPrefix parsing more robust

Change-Id: I3ad31920f4fa067bef63e0bab7702b19367f49b7