Revert "Merge pull request #10710 from senny/5554_let_the_database_raise_on_counts".

This commit causes certain associations to no longer be able to be found through includes (polymorphic belongs_to).

This reverts commit 433e75fa0a0466ad26c3f05d61831341e20f66e6.