Fixes queue implementation changes causes CCEs

Plugins might change the NetworkManager's queues with their own
implementation(i.e. TagAPI). This commit will check if the queues is still
an instanceof the PacketQueue and therefore execute the right code if that
is the case.

Signed-off-by: XemsDoom <moser.luca@gmail.com>