Fix app generator test hanging.

This fixes an issue (introduced in 8941d5a3) that was preventing the `app_generator_test` from running.