Fix broker id validation.

Fix broker id validation so that 0 is not treated as invalid ID.