shelve: handle empty parents and nodestoremove in shelvedstate (issue6748)

Resubmit of !262 (closed).

Merge request reports

Loading