[FIX] account_analytic_plan: correctly check context

The id of the journal is passed in the context. Avoid trying to browse on jounral_id=False
Fixes #821
Merge branch '7.0' of https://github.com/odoo/odoo into 7.0-win32