Stop onLoaded action if grid does not exist