Check for error or missing result from getBinCount
Merge pull request #1517 from jsbin/fix/bin-count-error-check

Check for error or missing result from getBinCount