slap/standalone: fix format with 0 partitions

we can have a case where written slapos.cfg has "partition_amount = 10"
(leftover from previous execution) and we call format(0), in this case,
we really want slapos.cfg function to be rewritten.

See merge request !557
19 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed SlapOS-Master.UnitTest-Master

05:59:57

passed SlapOS.Eggs.UnitTest-Master.Python2

00:32:42

passed SlapOS.Eggs.UnitTest-Master.Python3

00:25:17

failed SlapOS-Master.UnitTest-Master

03:27:29

failed SlapOS-Master.UnitTest-Master

02:30:38

failed SlapOS-Master.UnitTest-Master

failed SlapOS-Master.UnitTest-Master

06:18:37

passed SlapOS.Eggs.UnitTest-Master.Python2

00:17:34

passed SlapOS.Eggs.UnitTest-Master.Python2

00:29:17

passed SlapOS.Eggs.UnitTest-Master.Python2

00:27:46

passed SlapOS.Eggs.UnitTest-Master.Python2

00:18:13

passed SlapOS.Eggs.UnitTest-Master.Python2

02:03:52

passed SlapOS.Eggs.UnitTest-Master.Python2

00:24:56

passed SlapOS.Eggs.UnitTest-Master.Python3

00:19:28

passed SlapOS.Eggs.UnitTest-Master.Python3

02:16:00

passed SlapOS.Eggs.UnitTest-Master.Python3

00:35:33

passed SlapOS.Eggs.UnitTest-Master.Python3

00:34:02

passed SlapOS.Eggs.UnitTest-Master.Python3

00:31:58

passed SlapOS.Eggs.UnitTest-Master.Python3