Seems like unlike other backends MySQL get_constraints fails when dealing with a non-existing table. refs #23160.