I am surprised this is working for you. I have a D-Link hub and it will shut off powers to the ports unless there is a host connected.
This would not have worked with the hub I have. I do not think this will work. Try checking the continuity of the power and ground between the ports and between the upstream and downstream ports after powering off and disconnecting the hub. If the upstream and downstream ports are connected without any intermediary circuit, it might work.