:reduce and :xreduce returns nil when an empty list is given