Fix bug in InputGenerator::generateCoordinateBlock()

This fixes a bug in which the generateCoordinateBlock() method would
attempt to resize an empty string to numeric_limits<size_t>::max()
which would throw std::length_error. The code now checks that the
string is not empty before attempting to remove the last character.

Change-Id: I90a60297a14b436b5ca759343a5d6e25ce89b844
Merge topic 'fix-input-generator-bug' into master

ceef50d2 Fix bug in InputGenerator::generateCoordinateBlock()