If we don't check for `!empty($name)` now, it causes many things to break, since `isValidNodename` will throw an exception on empty node names.

Separately, I am not sure if we should be re-throwing the `\PHPCR\RepositoryException` or sticking with an `IdException`. If we want to do the latter it is an easy change now that everything else works.