Fix crash when no <main:> label is found

Fixes #35