fix the use of the FinishButton from script side

Change-Id: I84a8d4400b202441272232fbdecf6996056362a5
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>