fix javascript error with VDEF resource(s)

This fixes this error:
> TypeError: Cannot call method 'indexOf' of undefined at new RrdVdef