[GEOT-4677]: added logging and workaround for invalid unit string in time axis

This pull request is a modification of the https://github.com/geotools/geotools/pull/352 pull request.

Please look at the following issue https://jira.codehaus.org/browse/GEOT-4677.