Fix a couple crashing bugs with TastyPie==0.9.11 and Django==1.4.2