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.