myrial: use StatefulApply only if state

Otherwise use Apply