Sometimes PDF seems to create too slow on Heroku

There seems to be a race condition where by the time "display_summary" showed up, PDF file still was not valid.  So an error occurred as a result as "Something went wrong", like the file link is invalid.

I added a timeout of 5 seconds to see if the file exists, if not, it will spit out a more friendly error for user to let them know what happened and who to contact.

I also move the code to generate pdf to the helper file so it makes the controller cleaner.