Before this fix, when the user table does not already exist then calling User::model() will cause a crash as instantiating the models requires the table to be there. Change so we now query the module for the table name, which is what the model does anyway
At first-time install, config will not be set. When returning Nii modules, account for this fact