Composer.find_parent checks for bad element