Handle empty files in ruby parser.

CC @ruben2020

Fixes #12