Removes duplications from gemspec and Gemfile
Do not raise errors for element definitions having nil as contents value. Refs #469