Add check that optionsAfterRender binding was provided a function before attempting to use it.
Merge pull request #1556 from xdumaine/OptionsAfterRender-Not-A-Function

Add check that optionsAfterRender binding was provided a function