Exit when last element

Fix for Firefox 8 issue (https://github.com/weblinc/picture/issues/14)
Release 2.5.3