fixes ticket #11315: crash in language loader callback

callback did not check success/fail status.