Added code to skip sub entity creation when no resource identifier is specified.

Added code to skip sub entity creation when no resource identifier is specified.

This handles the exception case where sub-entities are specified in JSON, but with all null values.

Signed-off-by: Darren Ehlers <me@darrenehlers.com>