[FIX] Getting rid of Analytic Journal Items when no analytic account is being set

This Pull Request fixes this issue
https://github.com/odoo/odoo/issues/1224