BUG: don't allow an empty dataframe to have scalar assignment succeed (GH5744)