FileLogHandler: fix current log size evaluation
stat() was never called because it was placed as a second operand of a && operator, where the first operand is always true in normal condition.
This commit also fixes potentials memory leaks when the log handler cannot be created.