Fixing uncaught exception when request is empty.