download button null check