Sets first card as index card for published apps.

Fixes #1238