Re-order error checking

This solves the issue with spurious "JIRA export enabled ... but no entry in project_map"
messages.

Fixes GH-2.