Enforce check on database connection before doing anything.
On databases behind a firewall or too far from geoNetwork, sometimes this is needed.
Merge pull request #424 from Delawen/2.10.x

Enforce check on database connection before doing anything.