Added v 0.5.7+ compatibility

This was the only way I could get the plugin to load in nodebb 0.5.7 - 0.6-dev