Fixed for nested resource with empty parent resource
Merge pull request #1 from arsemyonov/master

Fix for nested resource with empty parent