Update library.py

if video_node is not defined an exception is thrown. 
This happens on a fresh install or when a video directory has not yet been added.
I've added a check + a message indication to prevent the exception and notify the user.