Raises ArgumentError when try to define a scope without a callable

This changes the actual exception `NoMethodError: undefined method `call'
for #<ActiveRecord::Relation []>` to a `ArgumentError` when try to define
a scope without a callable.
Merge pull request #17374 from maurogeorge/scope-exception

Raises ArgumentError when try to define a scope without a callable