Fixes issue where calling scrollIntoView on an empty jQ array throws an unhandled exception.