Don't validate empty codes

Fixes #61