fix for nil session in mobile_detection.rb