add missing unit tests for NextFreeDocNameCommand
fix CelementsWebPluginApi throwing IllegalArgumentException if space or
title empty. Ticket #3326