Added option send_empty_email

Added option send_empty_email that indicates if the email is sent in
case that the query returned is empty.