Make BgpProtoPrefix parsing more robust

Change-Id: I3f955164c890767d236287a8e122b2a044400a86