If I play Mass Mutiny and target a Heliod and the God loses devotion by coming under my control, would the legendary enchantment stay under my control as it would then no longer be target-able as a creature before the spell fully resolves or would the card just revert back to its original owner as it would no longer be a creature once coming under my control if I lacked the devotion?