Fixes Sentry::register method

By definition Sentry::register accepts a closure or a boolean in second parameter, but if the second parameter is false, is throw a InvalidArgumentException.
Merge pull request #338 from mapb1990/patch-1

Fixes Sentry::register method