Fix for null passed to Module Path

Fixes issue #1327

Set empty string when variable is null. Same result as doing `base("")`