Don't call after_commit when creating through an association and save fails, fixes #5802