kie-remote: Making sure TaskCommand instances are also accepted.
(cherry picked from commit 6921c8006d651d05dbe9be8e579824578e3f63d0)