Fix crash with empty motion names. Fixes #20.