Fixed infinite loop bug.

Defaulting to zero spacing and not checking in the label placement
loop meant that it never broke out and eventually ran out of
memory.