MDL-47916 Fixed invalid returned value type