Simple fixes for unset indexes when creating projects.

See https://github.com/BobRay/MyComponent/issues/15