Fix costume center for empty costumes

Fixes #312.