[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.
7 jobs for master in 17 minutes and 39 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #29870
build:3

00:01:20

 
  Test
passed #29873
load-modules:3

00:02:19

passed #29871
pyflakes:3

00:02:32

passed #29872
pyflakes-strict:3

00:02:32

passed #29874
unittests:3

00:02:01

43.0%
failed #29875
allowed to fail
unittests-modules:3

00:12:06

42.0%
 
  Deploy
passed #29876
doc:3

00:01:35

 
Name Stage Failure
failed
unittests-modules:3 Test
        </head>
<body>
<h1>Error: 400 Bad Request</h1>
<p>Sorry, the requested URL <tt>'https://ci.weboob.org/api/v1/modules'</tt>
caused an error:</p>
<pre>Invalid JSON payload.</pre>
</body>
</html>
ERROR: Job failed: exit code 1