Set rails version consts to nil if Rails isn't defined at all