Fixed issue with 3.1.x-dev causing crash in GridFieldDetailForm