plate::getMapIndex: not setting px and py when there is an error