[geany/geany-plugins] 2a3ff8: Add a additional checks for doc != NULL and removing such ones later to ensure