Avoid Breakage in production, check if Annotate is defined

This code caused Ruby Uninitialized Constant NameError in production on my VPS as I with bundled `--without development` option. 

This patch first checks if Annotate is defined; then ONLY load it.Thus,  Avoids causing `NameError` in production