Only use references (and includes), if there is something to do.
AR will use an outer join even if references(nil) is used, which causes the association’s scope to fail.