AutoloadGenerator: Don't throw MWExceptions

The class won't have been autoloaded, so it can't be used.

Change-Id: I54a9be600839c7bffe7debb8ee35ac46694390b4