do nothing in dt_dev_read_history() if no modules are loaded

this avoids warnings like the following if history stack is discarded from within lighttable mode:
[dev_read_history] the module `sharpen' requested by image `IMG_7273.CR2' is not installed on this computer!