api: fix issue when counting node not having type
api: fix issue when counting node not having type

Change-Id: Ia81f40cea6ab73fd30a9d72cf7982613d31209e3
Reviewed-on: http://softwarefactory-project.io/r/5302
Reviewed-by: Masco Kaliyamoorthy <75e2683cfc94863ef78c25b1a3fd996b311a68bc@redhat.com>
Workflow: Masco Kaliyamoorthy <75e2683cfc94863ef78c25b1a3fd996b311a68bc@redhat.com>
Tested-by: Jenkins CI <d95b56ce41a2e1ac4cecdd398defd7414407cc08@softwarefactory-project.io>

redhat-cip/skydive,safchain/skydive,skydive-project/skydive,lebauce/skydive,redhat-cip/skydive,safchain/skydive,skydive-project/skydive,skydive-project/skydive,skydive-project/skydive,safchain/skydive,safchain/skydive,safchain/skydive,skydive-project/skydive,lebauce/skydive,lebauce/skydive,lebauce/skydive,safchain/skydive,safchain/skydive,safchain/skydive,redhat-cip/skydive,lebauce/skydive,skydive-project/skydive,lebauce/skydive,lebauce/skydive,lebauce/skydive,skydive-project/skydive