Added check for invalid fetch joins
Fixes #13