VariableManager: Handle empty filenames gracefully

Change-Id: I6534f723c4ef0e9adf0d2a269af71bd0ff6da539
Reviewed-by: Eike Ziller <eike.ziller@digia.com>