Always return an error in case of incorrect backup mode

Some code paths allowed an invalid backup mode to be passed, something
rather crazy as they directly depended on that...