Fixed error with NullPointerException in class BrickList in functions
toWord() and toStringWithWeights().