Avoiding “NoMethodError” for nil in Ruby | Hacker News Reader