In modulestoreToSQL.py:__loadToSQL(): added guard against empty table.
In modulestoreToSQL.py:__loadToSQL(): added guard against empty table.

paepcke/json_to_relation,paepcke/json_to_relation,paepcke/json_to_relation,paepcke/json_to_relation