ERP5Type.Base: Trivial cleanups for getCreationDate.

- do not use getToolByName.
- do not put two statements on the same line
- merge nested "if" statements around a single code block