api/v3/utils - Redo 16404fbb4 for preventing fatal error

16404fbb4 attempted to fix a regression but was based on a flawed identification of the problem. I believe that api/v3/utils was doing the right thing, but it was given bad information. The new commit restores api/v3/utils to its old behavior but provides but error checking.