Fix for mapcontext business when getting layers envelope, getting dataset metadata when data have no one.