Cleanup commonplace lint errors
Prevent TypeError on ratingwidget swipes (bug 978046)