Updated gem to accept nil values correctly