ACT-1848 Handle correctly event registering in multi-instance usertasks

NOTE: Unit test not committed due to ACT-1339