Only send alerts if logs is written to DB.
Merge pull request #754 from protich/feature/admin-alert

Limit admin alerts to logged messages.

Reviewed-By: Jared Hancock <jared@osticket.com>