Fixed #819. Thowing exception when user had no bins