Fix crash if block is nil

Sending `nil` for block results in crash. 
example: `[self performSegueWithIdentifier:@"Identifier" sender:nil withBlock:nil];`

Check that block != nil before configuring segue.