Added extra output parameters(OperationId, Status, ErrorCode) to send email action to help the troubleshooting.
Added null/empty checks for all the input parameter within the extension.