montage: fix void return-type

Closes #25515.
Closes #25517.