fixed eight-point algorithm crash on degenerate input

Change-Id: I719eac1e21bfa1582db5e7708fb6d47e732c2e87