Prevent NPE on drag events