Fix CPPCHECK issues
Fix issue 401: Empty path equal to NULL pointer for path