Fixes abort error on appscale up when 'n' argument is used for replicati...

...on.

Tests pass.