size checking added

Pull request for https://github.com/greenrobot/EventBus/issues/31