Make sure jail template progress is an integer

Ticket:	#2452
(cherry picked from commit 2e43b7e5fc8642bbb58ea494dad2e7cf3378e082)