Adding a fix for LWRP's that use inline resources

This PR is dependent on CHEF-5281