Fixed a bug where no projects caused `log` to crash.