Following the steps described by Mateusz I can confirm the issue. The problem seems that prefLicenseUrl is not saved in the user.cfg when it's empty. But the funny thing is that this only happens in Debug mode and in Release mode everything works correctly.
EDIT: The saving is OK but the problem is that when reading the line