fix 500 on credit card page

Over on #2161 we're seeing a regression from #2036.