bugfix for #778

fixes #778 ImageBoolIndicator returns null pointer
Merge pull request #786 from berryma4/master

bugfix for #778