DAR-120: fixing the random Wall Empty bug caused by wgReadOnly being set...

... in the middle of the request.

We actually don't have to check for readonly in this method, as both places that use this make this check at the beginning of the request. But I still would like to log the db readonly problem to make sure that calls to wfGetDB can set the wgReadOnly variable in the middle of the request.