Make BgpProtoPrefix parsing more robust

Change-Id: I56e3df745993fe3720880bc4083ca8caabe02114