Added protextion against empty histos
Merge pull request #135 from adavidzh/dangling_script

Added protection against empty histos