fix for nil session in mobile_detection.rb
Merge pull request #1836 from nitper/patch-2

fix for nil session in mobile_detection.rb