Fixing bug: NoMethodError thrown when non-existent story id is referenced in git commit