Fixed getting function bodies for empty spells.