Fix exception handling and use "" for NULL
Few more sanity checks to avoid aborts
Check getTSIGKey response
Merge pull request #1548 from cmouse/remotebackend-exceptions

Fix exception handling and use "" for NULL