Add null check for getSource.
Update version to 1.0.5 in preparation for release.