Extends createDocumentFragment to conditionaly include elements generated by selectors