Fix for nested resource with empty parent