It seems that docker-registry.wikimedia.org/nodejs-slim has been updated recently with a build based on Debian stretch, but docker-registry.wikimedia.org/nodejs-devel remains a jessie based image. This discrepancy breaks the multi-stage production Mathoid build.
In general, these kinds of major discrepancies will be problematic for the new release pipeline. We should discuss ideas between our teams to mitigate such issues, perhaps with more detailed tagging (e.g. nodejs-slim:stretch and nodejs-slim:jessie in addition to nodejs-slim:latest) or cascading updates in the base image build system.