fixed ticket #435: improving error message on empty session id