Fix an assert in Qt 5.4 when dealing with connections to slot objects.