Anwsering my own question...
We found that in fact, the build pipeline wasn't doing the job correctly letting assets/pages untouched while code-behind files were built into the DLL. Resulting that referencing newly added aspx server control elements was giving null pointer exceptions.
Sorry about that!