Merge pull request #16 from mihaipopescu/not-all-control-paths-return

fixed warning C4715 treated as error "not all control paths return a value"