Looping over word without bounds check may cause illegal memory accesses,
potentially crashing balooshow. Add sanity checks for required lengths
and provide feedback in case an error has occured.
Invalid data may occur when the DB has beend corrupted.