[pajemploi] Detect documents that are not available
Some documents may not be available yet, or may have been modified and are not available. Trying to download such documents results in a 500 error. Thus we detect if the documents are available, using the same (javascript) logic as the main site.