Fixed error that would lead to an exception when receiving an empty string