Seems like unlike other backends MySQL get_constraints fails when dealing with a non-existing table. refs #23160. Backport of 1b00738f from master