fixed empty commit detection (again)