Reject attempts to open channels with number = 0

Fixes #177.