Fix of https://0xdata.atlassian.net/browse/HEX-1324

The NPE problem was caused by empty dataset (no rows).
Now SharedTreeBuilder check parameters and returns
IllegalArgumentException if source dataset is empty.
Merge branch 'master' of github.com:0xdata/h2o
Merge branch 'master' of github.com:0xdata/h2o