Fix some logic errors in NDMP backup and restore.

We still have a problem when you restore two NDMP streams
part of one backup. The solution for now is to first restore
the first full backup and then the second one.