TSAGE: R2R - Fix some checks on action, check calls of getObjectScene and replace magic values by constant