MainActivity: Avoid a crash