Prevent NPE in quick button when no docs