Bug-1447: Ensure candidate's parents exist.

-When electing Rib enty's new state, ensure it's parents are created.

Change-Id: Ia0791eee031dc2dba5c5b206dae693fa880df1ab
Signed-off-by: Milos Fabian <milfabia@cisco.com>