Make BgpProtoPrefix parsing more robust

Change-Id: Ia0a24ba43572b6b923287608d13474376d6387cf