Update app/inputs/autocomplete_input.rb

fix NoMethodError - undefined method `macro' for nil:NilClass: