Check whether the specified entity_type exists before trying to embed entity.

Details in drupal.org issue: https://drupal.org/node/2271185.

Should be merged after PR #9 passes through.