Bugfix: return nil when block_given for count==0