Fixed bug introduced that made test fails with undefied upcase for nil