1. Fixed crash when adding entry without any categories inserted first.