Fixing null pointer exception during add to page See merge request theappsmith/internal-tools-server!222