Fix default loader.

I'm using react-infinite-scroll with the latest version of React, and I encountered runtime errors when I first tried to load it.

I assume that React changed the semantics of getDefaultProps at some point and that this change resulted in the issue.