function aliveGuard(callback) {
			return function(result) {
				if (editor.selection) {
					return callback(result);
				}

				return [];
			};
		}
Handles image uploads, updates undo stack and patches over various internal functions.

@private
@class tinymce.EditorUpload