Playbook doesn't fail with EC2 when no hosts return

Usually ansible playbook task fails when there’s no host found when using static inventory. But when using EC2.py and when there’s no host returns playbook doesn’t fail which prevents us from notifying that task has not been run on particular instance with automated tasks.

Below is the output of playbook when no host found

`

PLAY RECAP *********************************************************************

Finished: SUCCESS
`

Have anyone come across this issue or is there’s any option to change its behaviour

Thanks
Irfad