Fix unpack error on _executeQueryCommand

Similar of #1098 for 1.4. However that was closed without resolving the issue.