Fixed check_auth smarty plugin when used directly from render method
added exception for Invalid Module