If the path is empty, return the atom instead of a cursor.

Empty paths (`[ ]`) are problematic with functions like `update-in`.

To avoid any problem, simply return the original atom if someone tries to create a cursor with an empty path.