Association belongs bug

Issue with getting undefined method for nil class which breaks further after_commit callbacks.  Checking for nil in multiple areas of the association.