node: fixed node creation check, return error if not could not be created