connection: check for transaction before attempts to access objects in it

so Haraka doesn't crash
Merge pull request #549 from msimerson/connection

connection: check for transaction before attempts to access objects in i...
smtp_proxy: bug fix, defines an undefined variable
Merge pull request #550 from msimerson/smtpproxy

smtp_proxy: bug fix, defines an undefined variable
qmd: rename test filename (to match every others one with a .js ext)