A nomination does not mean that the republican party needs to back Trump. They could have simply chose someone else or even remove him from their ticket. It’s all in their control.
A primary is merely to check and see which way the political wind is blowing before the election. And nominations are not written in stone.