Added an alert if there is no selected document and the PDF button is tapped