Fix undefined method `ref' for nil:NilClass  for bad headers

Update change log
Merge branch 'master' of https://github.com/sbeckeriv/rails