Fixes #601 - checking also if foreign key name is empty.
Merge pull request #603 from yanaga/FIX-601

Fixes #601 - checking also if foreign key name is empty.