Fixed issue with updating new models.

Previously, we were posting to /<category>/undefined/add when trying update
new models. This was fixed so we not post correctly to /<category>/add.

refs #16071