Fix issue where records were not returned it had no habtm associated records.
Fixes #49