rib: Fixing bug with RibUnregister when route origin is not specified

Change-Id: Ica250a1c45ed42f1dc7862a12916f893fa846312
Refs: #1773