Return error if sync fn tries to use an invalid channel name

If the JS sync fn calls access() or channel() with an invalid channel
name, it now fails with an error instead of ignoring the channel.
(Fixes #28)