Issues 3665 and 3671: fix for phantom data in work form due to Rails association bug. Works are now told explicitly not to pull in chapters with null foreign keys.
Merge pull request #1263 from elzj/issue_3665_3671_null_associations

Issues 3665 and 3671: fix for phantom data in work form