Fixed error when no results for issue manager query. Also fix error emailing error.

Fixed error when no results for issue manager query. Also fix error emailing error.