mavlink bridge: add safer handling of division by zero