Prevent flat rate rows with no class set from saving. Closes #3312.