Ensure the part param is not null. Closes #2470.