Fix undefined method each on nil class -v0.5.1