Fix undefined found shipping classes. Closes #2974.