replacing return ''; by exit; to avoid sending wrong headers

Opera was seeing this as an htm file instead of a PDF download