Fix for derivative of assemblies with boundary variables that don't connect internally