Vulnerability: fix issues with call from scan section.

("Partially" Cherry picked from commit def7d67d90061fdcc01844f965acfa15a62e3358)

Conflicts:
	src/platform/vulnerability.cpp