EMI: Fix demo crashes

This fixes crashes in the demo version of EMI introduced recently by #972.