When assisted-living facilities shut down, their elderly residents often have to scramble for a new home—and health and financial concerns can make it hard to find a fit.