updated table submit code to handle case where table select option is configured but source table is empty