When Magma Prevents Volcanic Eruptions