Merge "Fix NPE when trying to get input device for attributes." into qt-dev