Make BgpProtoPrefix parsing more robust

Change-Id: I9d72f583a19b9b2fd2ee204967d49d8f74a11a34