Adds check for nil before calling blocks. This allows for partial mocks to stub out methods to literally do nothing (instead of their non-stubbed behavior).
Merge branch 'sstigler-master'
Added test for nil block action pull request.