Prevent crash on OSX. Refs #7637.