With this test
if($VMsWithSnaps -ne $null){
the part of the script that sends out the email is only executed when there are snapshots present.
If you add an
else {....}
block on that If statement, you can place code in that block that is fired when there are no snapshots.