Bug fix: WSOD when file entity is empty.