Added a defensive check since it causes my acceptance test fail.