Fixed NullPointerException in scale-layer-scores. Closes gh-4