Fix null return from getMobileResource