Added some safety checks which led to erratic behaviour with the error "NoMethodError (undefined method `local_options' for nil:NilClass)"
Added some safety checks which led to erratic behaviour with the error "NoMethodError (undefined method `local_options' for nil:NilClass)"

pierrevalade/thinking-sphinx,agibralter/thinking-sphinx,Napolskih/thinking-sphinx,fxposter/thinking-sphinx