Make BgpProtoPrefix parsing more robust

Change-Id: Ib604c5cb9b57f203515ad01ece2c7b10986afd66